package com.jdk.proxy;

public class ProxyTest {

    public static void main(String[] args) {
        Person person = JDKProxy.getProxy(Person.class);
        System.out.println(person.say("world"));

        XiaoMing x = (XiaoMing) CGLibProxy.getClassProxy(XiaoMing.class);
        System.out.println(x.say("shit"));

        Person person1 = (Person) CGLibProxy.getInterfaceClassProxy(Person.class);
        System.out.println(person1.say("NEO"));
    }
}
